<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>大卫杜夫 | 雪茄</title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="shortcut icon" type="image/ico" href="http://davidoff.com/favicon.ico" />
	<link href="../static/lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
	<link href="../static/css/main.css" rel="stylesheet">
</head>

<body>
	<div id="header"></div>
	<div class="main_cont cigars_mainbox" >
		<div  id="wp">
		<script id="tpl" type="text/html">
		<section>
			<div class="page_wrapper">
				<div class="txtline">
					<h1><%:=list.label%></h1>
					<p><%:=list.PD_TYPE_REMARK.split('|').join('<br>')%></p>
				</div>
				<div class="row">
                        <%for(var i = 0; i < list.children.length; i++) {%>
                            <%var children = list.children[i];%>
					<div class="col-sm-12 col-md-6 col-lg-6 col-xl-6">
						<div class="trade-box-item">
							<a href="product.html?type=<%:=children.label%>&PD_TYPE=<%:=children.id%>" class="itembox">
								<img src="<%:=children.IMG_URL%>" alt="">
								<div class="item_mask"></div>
								<div class="itemtxtbox">
									<div class="item-title"><%:=children.label%></div>
									<div class="item-text">
										<p><%:=children.PD_TYPE_REMARK%></p>
										<div style="margin-top:10px">查看详情 ›</div>
									</div>

								</div>
							</a>
						</div>
                    </div>
                    <!-- trade-box-item -->
                    <%}%>
				</div>
			</div>
        </section>

	</script>
</div>
	  <section>
            <div class="page_wrapper">
                <div class="kv kvprd">
                    <img src="../static/images/kv3.jpg">
                    <div class="txtbox">
                        <b>购买</b>
                        <p>自1911年以来，日内瓦大卫杜夫旗舰店是那些渴望精致手工制作的雪茄、奢侈配饰和精致礼品的人们首选目的地。</p>

                        <a href="../map/index.html" class="btn_yellow">临近店铺</a>
                    </div>

                </div>
            </div>
        </section>
	</div>
	<!--footer start  -->
	<div id="footer"></div>
	<!--footer end  -->
	<script type="text/javascript" src="../static/lib/fancyBox-2.1.5/lib/jquery-1.10.1.min.js"></script>
	<script src="../static/lib/bootstrap/dist/js/bootstrap.min.js"></script>
	<script src="../static/js/common.js"></script>
	<script src="../static/js/template.js"></script>
	<script>
		var ProductTypeList = []
		$(function () {
			$.post("http://davidoff.gemdesign.cn/CMS/api/CMS", {
				"cmd": "product.type.list.get"
			}, function (data) {
				ProductTypeList = data.ProductTypeList.find(function (elem) {
					return elem.label == '小雪茄'
				});
                console.log(ProductTypeList)
				var tpl = document.getElementById('tpl').innerHTML;
				var html = template(tpl, {
					list: ProductTypeList
				});
				document.getElementById('wp').innerHTML = html;

				$('.trade-box-item .itemtxtbox').each(function () {
					var teaser = $('.item-text', this)
					$(this).css({
						bottom: -teaser.height() - 16
					})
					console.log('aa', this)
				})
			});
		})
	</script>
</body>

</html>
